package demo1;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @Author liangzai
 * @Description:
 */
public class Training {
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String gender = scanner.nextLine();
        int age = scanner.nextInt();
        int key = scanner.nextInt();
        if(gender.equals("男")){
            if(age>=50 && age<=55){
                if(key>134) System.out.println("有高血压");
                else System.out.println("没有高血压");
            }else if(age>=56 && age<=60){
                if(key>137) System.out.println("有高血压");
                else System.out.println("没有高血压");
            }
        }else if(gender.equals("女")){
            if(age>=50 && age<=55){
                if(key>134) System.out.println("有高血压");
                else System.out.println("没有高血压");
            }else if(age>=56 && age<=60){
                if(key>139) System.out.println("有高血压");
                else System.out.println("没有高血压");
            }
        }else {
            System.out.println("性别错误！");
        }
    }

    public static void main(String[] args) {
        int red = 3;
        int w = 3;
        int b = 6;
        int count = 8;
        for (int i = 0; i <= red ; i++) {
            for (int j = 0; j <= w ; j++) {
                if(count-i-j>6) continue;
                int k = count-i-j;
                System.out.print("红球有："+i+"  ");
                System.out.print("白球有："+j+"  ");
                System.out.print("黑球有："+k+"  ");
                System.out.println();
            }
        }
    }
//System.out.println("红球有："+i);
//                    System.out.println("白球有："+j);
//                    System.out.println("黑球有："+k);
    public static void main4(String[] args) {
        int[] arr = {23,53,11,52,56,65,67,55,45,531,234,5454};
        int len = arr.length;
        int i = 0;
        while (i<len) {
            int ele = arr[i];
            i++;
            if((ele+"").startsWith("5")) continue;
            System.out.println(ele+"\t");
        }
    }

    public static void main2(String[] args) {
        int[] a = {34,56,23,6};
        Arrays.sort(a);
        System.out.println(a.toString());
    }

    public static void main1(String[] args) {
        for (int i = 0; i < 2; i++) {
            continue;
        }
        int[] a = {34,56,23,6};
        Arrays.sort(a);
        System.out.println(a.toString());
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        s.length();
        int score = 1;
        if(score<=100 && score>=90) {
            System.out.println("A");
        }else if(score<=89 && score>=70) {
            System.out.println("B");
        }else {
            System.out.println("C");
        }
    }
}
